From: Dave Love Date: Mon, 4 Nov 2002 14:57:54 +0000 (+0000) Subject: (read_char): Always translate iff X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~29908 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a53c8493097a5cff39a923722079a14f414f1a60;p=emacs.git (read_char): Always translate iff Vkeyboard_translate_table is a char table and c is valid. --- diff --git a/src/keyboard.c b/src/keyboard.c index 7e3e4372e51..ea1f82f5639 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2780,7 +2780,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) || (VECTORP (Vkeyboard_translate_table) && XVECTOR (Vkeyboard_translate_table)->size > (unsigned) XFASTINT (c)) || (CHAR_TABLE_P (Vkeyboard_translate_table) - && CHAR_TABLE_ORDINARY_SLOTS > (unsigned) XFASTINT (c))) + && CHAR_VALID_P (XINT (c), 0))) { Lisp_Object d; d = Faref (Vkeyboard_translate_table, c);